home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / necko / nsISecretDecoderRing.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  8KB  |  233 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsISecretDecoderRing.idl
  3.  */
  4.  
  5. #ifndef __gen_nsISecretDecoderRing_h__
  6. #define __gen_nsISecretDecoderRing_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsISecretDecoderRing */
  19. #define NS_ISECRETDECODERRING_IID_STR "0ec80360-075c-11d4-9fd4-00c04f1b83d8"
  20.  
  21. #define NS_ISECRETDECODERRING_IID \
  22.   {0x0ec80360, 0x075c, 0x11d4, \
  23.     { 0x9f, 0xd4, 0x00, 0xc0, 0x4f, 0x1b, 0x83, 0xd8 }}
  24.  
  25. class NS_NO_VTABLE nsISecretDecoderRing : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISECRETDECODERRING_IID)
  29.  
  30.   /* [noscript] long encrypt (in buffer data, in long dataLen, out buffer result); */
  31.   NS_IMETHOD Encrypt(unsigned char * data, PRInt32 dataLen, unsigned char * *result, PRInt32 *_retval) = 0;
  32.  
  33.   /* [noscript] long decrypt (in buffer data, in long dataLen, out buffer result); */
  34.   NS_IMETHOD Decrypt(unsigned char * data, PRInt32 dataLen, unsigned char * *result, PRInt32 *_retval) = 0;
  35.  
  36.   /* string encryptString (in string text); */
  37.   NS_IMETHOD EncryptString(const char *text, char **_retval) = 0;
  38.  
  39.   /* string decryptString (in string crypt); */
  40.   NS_IMETHOD DecryptString(const char *crypt, char **_retval) = 0;
  41.  
  42.   /* void changePassword (); */
  43.   NS_IMETHOD ChangePassword(void) = 0;
  44.  
  45.   /* void logout (); */
  46.   NS_IMETHOD Logout(void) = 0;
  47.  
  48.   /* void logoutAndTeardown (); */
  49.   NS_IMETHOD LogoutAndTeardown(void) = 0;
  50.  
  51. };
  52.  
  53. /* Use this macro when declaring classes that implement this interface. */
  54. #define NS_DECL_NSISECRETDECODERRING \
  55.   NS_IMETHOD Encrypt(unsigned char * data, PRInt32 dataLen, unsigned char * *result, PRInt32 *_retval); \
  56.   NS_IMETHOD Decrypt(unsigned char * data, PRInt32 dataLen, unsigned char * *result, PRInt32 *_retval); \
  57.   NS_IMETHOD EncryptString(const char *text, char **_retval); \
  58.   NS_IMETHOD DecryptString(const char *crypt, char **_retval); \
  59.   NS_IMETHOD ChangePassword(void); \
  60.   NS_IMETHOD Logout(void); \
  61.   NS_IMETHOD LogoutAndTeardown(void); 
  62.  
  63. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  64. #define NS_FORWARD_NSISECRETDECODERRING(_to) \
  65.   NS_IMETHOD Encrypt(unsigned char * data, PRInt32 dataLen, unsigned char * *result, PRInt32 *_retval) { return _to Encrypt(data, dataLen, result, _retval); } \
  66.   NS_IMETHOD Decrypt(unsigned char * data, PRInt32 dataLen, unsigned char * *result, PRInt32 *_retval) { return _to Decrypt(data, dataLen, result, _retval); } \
  67.   NS_IMETHOD EncryptString(const char *text, char **_retval) { return _to EncryptString(text, _retval); } \
  68.   NS_IMETHOD DecryptString(const char *crypt, char **_retval) { return _to DecryptString(crypt, _retval); } \
  69.   NS_IMETHOD ChangePassword(void) { return _to ChangePassword(); } \
  70.   NS_IMETHOD Logout(void) { return _to Logout(); } \
  71.   NS_IMETHOD LogoutAndTeardown(void) { return _to LogoutAndTeardown(); } 
  72.  
  73. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  74. #define NS_FORWARD_SAFE_NSISECRETDECODERRING(_to) \
  75.   NS_IMETHOD Encrypt(unsigned char * data, PRInt32 dataLen, unsigned char * *result, PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Encrypt(data, dataLen, result, _retval); } \
  76.   NS_IMETHOD Decrypt(unsigned char * data, PRInt32 dataLen, unsigned char * *result, PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Decrypt(data, dataLen, result, _retval); } \
  77.   NS_IMETHOD EncryptString(const char *text, char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->EncryptString(text, _retval); } \
  78.   NS_IMETHOD DecryptString(const char *crypt, char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->DecryptString(crypt, _retval); } \
  79.   NS_IMETHOD ChangePassword(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ChangePassword(); } \
  80.   NS_IMETHOD Logout(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Logout(); } \
  81.   NS_IMETHOD LogoutAndTeardown(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->LogoutAndTeardown(); } 
  82.  
  83. #if 0
  84. /* Use the code below as a template for the implementation class for this interface. */
  85.  
  86. /* Header file */
  87. class nsSecretDecoderRing : public nsISecretDecoderRing
  88. {
  89. public:
  90.   NS_DECL_ISUPPORTS
  91.   NS_DECL_NSISECRETDECODERRING
  92.  
  93.   nsSecretDecoderRing();
  94.  
  95. private:
  96.   ~nsSecretDecoderRing();
  97.  
  98. protected:
  99.   /* additional members */
  100. };
  101.  
  102. /* Implementation file */
  103. NS_IMPL_ISUPPORTS1(nsSecretDecoderRing, nsISecretDecoderRing)
  104.  
  105. nsSecretDecoderRing::nsSecretDecoderRing()
  106. {
  107.   /* member initializers and constructor code */
  108. }
  109.  
  110. nsSecretDecoderRing::~nsSecretDecoderRing()
  111. {
  112.   /* destructor code */
  113. }
  114.  
  115. /* [noscript] long encrypt (in buffer data, in long dataLen, out buffer result); */
  116. NS_IMETHODIMP nsSecretDecoderRing::Encrypt(unsigned char * data, PRInt32 dataLen, unsigned char * *result, PRInt32 *_retval)
  117. {
  118.     return NS_ERROR_NOT_IMPLEMENTED;
  119. }
  120.  
  121. /* [noscript] long decrypt (in buffer data, in long dataLen, out buffer result); */
  122. NS_IMETHODIMP nsSecretDecoderRing::Decrypt(unsigned char * data, PRInt32 dataLen, unsigned char * *result, PRInt32 *_retval)
  123. {
  124.     return NS_ERROR_NOT_IMPLEMENTED;
  125. }
  126.  
  127. /* string encryptString (in string text); */
  128. NS_IMETHODIMP nsSecretDecoderRing::EncryptString(const char *text, char **_retval)
  129. {
  130.     return NS_ERROR_NOT_IMPLEMENTED;
  131. }
  132.  
  133. /* string decryptString (in string crypt); */
  134. NS_IMETHODIMP nsSecretDecoderRing::DecryptString(const char *crypt, char **_retval)
  135. {
  136.     return NS_ERROR_NOT_IMPLEMENTED;
  137. }
  138.  
  139. /* void changePassword (); */
  140. NS_IMETHODIMP nsSecretDecoderRing::ChangePassword()
  141. {
  142.     return NS_ERROR_NOT_IMPLEMENTED;
  143. }
  144.  
  145. /* void logout (); */
  146. NS_IMETHODIMP nsSecretDecoderRing::Logout()
  147. {
  148.     return NS_ERROR_NOT_IMPLEMENTED;
  149. }
  150.  
  151. /* void logoutAndTeardown (); */
  152. NS_IMETHODIMP nsSecretDecoderRing::LogoutAndTeardown()
  153. {
  154.     return NS_ERROR_NOT_IMPLEMENTED;
  155. }
  156.  
  157. /* End of implementation class template. */
  158. #endif
  159.  
  160.  
  161. /* starting interface:    nsISecretDecoderRingConfig */
  162. #define NS_ISECRETDECODERRINGCONFIG_IID_STR "01d8c0f0-0ccc-11d4-9fdd-000064657374"
  163.  
  164. #define NS_ISECRETDECODERRINGCONFIG_IID \
  165.   {0x01d8c0f0, 0x0ccc, 0x11d4, \
  166.     { 0x9f, 0xdd, 0x00, 0x00, 0x64, 0x65, 0x73, 0x74 }}
  167.  
  168. class NS_NO_VTABLE nsISecretDecoderRingConfig : public nsISupports {
  169.  public: 
  170.  
  171.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISECRETDECODERRINGCONFIG_IID)
  172.  
  173.   /* void setWindow (in nsISupports w); */
  174.   NS_IMETHOD SetWindow(nsISupports *w) = 0;
  175.  
  176. };
  177.  
  178. /* Use this macro when declaring classes that implement this interface. */
  179. #define NS_DECL_NSISECRETDECODERRINGCONFIG \
  180.   NS_IMETHOD SetWindow(nsISupports *w); 
  181.  
  182. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  183. #define NS_FORWARD_NSISECRETDECODERRINGCONFIG(_to) \
  184.   NS_IMETHOD SetWindow(nsISupports *w) { return _to SetWindow(w); } 
  185.  
  186. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  187. #define NS_FORWARD_SAFE_NSISECRETDECODERRINGCONFIG(_to) \
  188.   NS_IMETHOD SetWindow(nsISupports *w) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWindow(w); } 
  189.  
  190. #if 0
  191. /* Use the code below as a template for the implementation class for this interface. */
  192.  
  193. /* Header file */
  194. class nsSecretDecoderRingConfig : public nsISecretDecoderRingConfig
  195. {
  196. public:
  197.   NS_DECL_ISUPPORTS
  198.   NS_DECL_NSISECRETDECODERRINGCONFIG
  199.  
  200.   nsSecretDecoderRingConfig();
  201.  
  202. private:
  203.   ~nsSecretDecoderRingConfig();
  204.  
  205. protected:
  206.   /* additional members */
  207. };
  208.  
  209. /* Implementation file */
  210. NS_IMPL_ISUPPORTS1(nsSecretDecoderRingConfig, nsISecretDecoderRingConfig)
  211.  
  212. nsSecretDecoderRingConfig::nsSecretDecoderRingConfig()
  213. {
  214.   /* member initializers and constructor code */
  215. }
  216.  
  217. nsSecretDecoderRingConfig::~nsSecretDecoderRingConfig()
  218. {
  219.   /* destructor code */
  220. }
  221.  
  222. /* void setWindow (in nsISupports w); */
  223. NS_IMETHODIMP nsSecretDecoderRingConfig::SetWindow(nsISupports *w)
  224. {
  225.     return NS_ERROR_NOT_IMPLEMENTED;
  226. }
  227.  
  228. /* End of implementation class template. */
  229. #endif
  230.  
  231.  
  232. #endif /* __gen_nsISecretDecoderRing_h__ */
  233.